package com.jianyushe.mysqltest.controller;

import com.jianyushe.mysqltest.service.impl.TeacherServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.sql.SQLException;

/**
 * <p>
 * 教师表 前端控制器
 * </p>
 *
 * @author Alvin
 * @since 2022-05-08
 */
@Controller
@RequestMapping("/teacher")
public class TeacherController {

    @Autowired
    TeacherServiceImpl teacherService;

    @RequestMapping("/test")
    public void testMysql() throws SQLException {
        //teacherService.test();
        teacherService.wrapperTest();
    }
}
